//
//  RecordsViewCell.m
//  AntsExpress
//
//  Created by slccper on 16/3/9.
//  Copyright © 2016年 slccper. All rights reserved.
//

#import "RecordsViewCell.h"

@implementation RecordsViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setData:(NSDictionary *)dic
{
    self.time.text = [dic objectForKey:@"createtime"];
    self.type.text = [dic objectForKey:@"type"];
    self.money.text = [NSString stringWithFormat:@"%ld",[[dic objectForKey:@"money"] integerValue]];
    NSString *oid = [dic objectForKey:@"oid"];
    if(oid.length>0){
        self.oid.text = [NSString stringWithFormat:@"單號：%@",[dic objectForKey:@"oid"]];
    }

}
@end
